Telegram Group & Telegram Channel
🖥 Почему стоит избегать throw ex в C#/.NET

Исключения играют важную роль в C#/.NET приложениях, помогая поддерживать их стабильность. Важно использовать throw; вместо throw ex; в блоках catch, чтобы сохранить исходный стек вызовов и упростить отладку. Использование throw ex; сбрасывает стек, усложняя устранение ошибок.

Подробности: https://nilebits.hashnode.dev/c-net-exception-handling-why-you-should-avoid-using-throw-ex-in-catch-blocks

#en
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/csharp_1001_notes/537
Create:
Last Update:

🖥 Почему стоит избегать throw ex в C#/.NET

Исключения играют важную роль в C#/.NET приложениях, помогая поддерживать их стабильность. Важно использовать throw; вместо throw ex; в блоках catch, чтобы сохранить исходный стек вызовов и упростить отладку. Использование throw ex; сбрасывает стек, усложняя устранение ошибок.

Подробности: https://nilebits.hashnode.dev/c-net-exception-handling-why-you-should-avoid-using-throw-ex-in-catch-blocks

#en

BY C# 1001 notes




Share with your friend now:
tg-me.com/csharp_1001_notes/537

View MORE
Open in Telegram


C 1001 notes Telegram | DID YOU KNOW?

Date: |

Telegram announces Search Filters

With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even “Yesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.

C 1001 notes from tr


Telegram C# 1001 notes
FROM USA